package game.roles.enemys;


import game.frame.MainFrame;
import game.roles.gifts.Gift1;
import game.utils.ImageChange;

import java.awt.*;
import java.util.Random;

/**
 * @author liuyulai
 * Created with IntelliJ IDEA.
 * Date: 21.5.6
 * Time: 21:25
 * Description: 小兵1
 */
public class Soldier1 extends EnemyRole {

    public static Image[] solider1;

    private ImageChange rm = new ImageChange(3);

    public Soldier1() {
        super(2000 + new Random().nextInt(200), 400 + new Random().nextInt(100), 120, 120, 100, 40);
    }

    @Override
    public void rolesMove() {
        this.x -= 6;
        this.img = this.rm.change(solider1);
    }

}
